package com.brillilab.domain.vo.home;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;


@Data
public class HomeExperimentVo  implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 实验ID
	 */
	private Long experimentId;
	
	/**
	 * 实验名称
	 */
	private String name;
	
	/**
	 * 状态：0未开始、1进行中、2已结束
	 */
	private Integer state;
	
	/**
	 * 课题名称
	 */
	private String topicName;
	
	/**
	 * 一级方法类型ID
	 */
	private Long firstTypeId;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 持续时间(秒)
	 */
	private long duration;

	public long getDuration() {
		duration = (new Date().getTime()-createTime.getTime())/1000;
		return duration;
	}


}
